package com.ruitu.mall_98_2.mine;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.beanu.arad.Arad;
import com.beanu.arad.base.my_base.Config;
import com.beanu.arad.base.my_base.MyBaseActivity;
import com.beanu.arad.widget.progressactivity.ProgressLayout;
import com.bumptech.glide.Glide;
import com.ruitu.mall_98_2.R;
import com.ruitu.router_module.AppHolder;

public class UserMessageActivity extends MyBaseActivity {

    private ImageView iv_head;

    private RelativeLayout rl_header;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);

        if (rl_header == v) {

        }
    }

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_user_message;
    }

    @Override
    protected ProgressLayout findProgressLayout() {
        return null;
    }

    @Override
    protected void initViews() {
        super.initViews();
        setHeadTitle("个人信息");
        iv_head = findViewById(R.id.iv_head);
        rl_header = findViewById(R.id.rl_header);

        setListener();
        Glide.with(this).load(Config.BASE_URL + AppHolder.instance().getUser().getImageUrl()).apply(Arad.opts_circle).into(iv_head);
    }

    private void setListener() {
        rl_header.setOnClickListener(this);
    }

}
